home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 21 / Cream of the Crop 21 (Terry Blount) (October 1996).iso / lan / fsl222.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1996-07-22  |  11KB  |  265 lines

  1. ::
  2. ::  INSTALL.BAT for FSLOGIN v2
  3. ::
  4. @echo off
  5. cls
  6. if exist fslogin.ovl goto m_main
  7. echo    ╒══════════════════════════════════════════════════════════════════════╕
  8. echo    │                                                                      │
  9. echo    │ This batch file should be run from the same drive and directory      │
  10. echo    │ where the other files of the FSLOGIN package reside. Please change   │
  11. echo    │ the current drive and directory first.                               │
  12. echo    │                                                                      │
  13. echo    ╘══════════════════════════════════════════════════════════════════════╛
  14. echo\
  15. pause
  16. goto end
  17. ::
  18. :m_main
  19. ::
  20. cls
  21. echo    ╒══════════════════════════════════════════════════════════════════════╕
  22. echo    │ INSTALL.BAT                                               FSLOGIN v2 │
  23. echo    │                                                                      │
  24. echo    │ This batch file installs FSLOGIN on a server or on a workstation.    │
  25. echo    │                                                                      │
  26. echo    │ When a server installation has to be done, make sure you're logged   │
  27. echo    │ with a SUPERVISOR or EQUIVALENT account, because FSLOGIN files must  │
  28. echo    │ be copied to the SYS:LOGIN and SYS:PUBLIC directories.               │
  29. echo    │                                                                      │
  30. echo    │ F1 = Install on local disk    (usefull for evaluation by Supervisor) │
  31. echo    │                                                                      │
  32. echo    │ F2 = Install on server        (makes FSLOGIN available for users)    │
  33. echo    │                                                                      │
  34. echo    │ F3 = Update on server         (preserve FSLOGIN.INI, then install)   │
  35. echo    │                                                                      │
  36. echo    │ F9 = Quit this procedure                                             │
  37. echo    │                                                                      │
  38. echo    ╘══════════════════════════════════════════════════════════════════════╛
  39. echo\
  40. fk 1239
  41. if errorlevel 9 goto end
  42. if errorlevel 3 goto i_update
  43. if errorlevel 2 goto i_server
  44. if errorlevel 1 goto i_local
  45. ::
  46. :i_local
  47. ::
  48. cls
  49. echo    ╒══════════════════════════════════════════════════════════════════════╕
  50. echo    │ LOCAL INSTALL                                             FSLOGIN v2 │
  51. echo    │                                                                      │
  52. echo    │ The Local Installation option places all the FSLOGIN files in a      │
  53. echo    │ directory on a local hard disk. If you want to have a look at this   │
  54. echo    │ software without installing on a server, this is the option to use.  │
  55. echo    │                                                                      │
  56. echo    │ Once installed, FSLOGIN should be started with a command line option │
  57. echo    │ that 'tells' FSLOGIN to read it's INI file (FSLOGIN.INI) from the    │
  58. echo    │ local disk instead from the SYS:LOGIN directory.                     │
  59. echo    │ Since the INI file contains information that regular users should    │
  60. echo    │ not be able to change, this is an exception to the rule. In a normal │
  61. echo    │ operational environment the INI file is always taken from SYS:LOGIN. │
  62. echo    │                                                                      │
  63. echo    │ Continue?  'Y'es or 'N'o.                                            │
  64. echo    ╘══════════════════════════════════════════════════════════════════════╛
  65. yesno
  66. if NOT errorlevel 1 goto m_main
  67. ::
  68. :i_loc_2
  69. ::
  70. echo\
  71. what S "   Which directory to install: "
  72. if exist %WHAT%\nul goto i_loc_3
  73. echo\
  74. echo    Create this directory, 'Y'es or 'N'o?
  75. yesno
  76. if NOT errorlevel 1 goto i_loc_2
  77. md %WHAT%
  78. ::
  79. :i_loc_3
  80. ::
  81. set L_RET=i_loc_4
  82. goto l_menu
  83. ::
  84. :i_loc_4
  85. ::
  86. cls
  87. copy fslogin.* %WHAT%
  88. cd %WHAT%
  89. set L_RET=i_loc_5
  90. ::goto 4_menu
  91. ::
  92. :i_loc_5
  93. ::
  94. cls
  95. echo    ╒══════════════════════════════════════════════════════════════════════╕
  96. echo    │ LOCAL INSTALL                                             FSLOGIN v2 │
  97. echo    │                                                                      │
  98. echo    │ The Local Installation is complete. Please start FSLOGIN with the    │
  99. echo    │ following command line option to use the locally installed files:    │
  100. echo    │                                                                      │
  101. echo    │ FSLOGIN !LI                 (actually this is case INsensitive...)   │
  102. echo    │                                                                      │
  103. echo    │ For more information see the readme.txt file that is part of the     │
  104. echo    │ archive file or the diskette.                                        │
  105. echo    │                                                                      │
  106. echo    ╘══════════════════════════════════════════════════════════════════════╛
  107. goto end
  108. ::
  109. :i_server
  110. ::
  111. cls
  112. echo    ╒══════════════════════════════════════════════════════════════════════╕
  113. echo    │ SERVER INSTALL                                            FSLOGIN v2 │
  114. echo    │                                                                      │
  115. echo    │ The Server Installation option places the FSLOGIN files in the SYS:  │
  116. echo    │ LOGIN and the SYS:PUBLIC directories on the default server.          │
  117. echo    │                                                                      │
  118. echo    │ Use the Server Installation when you do not have a previously        │
  119. echo    │ installed version of FSLOGIN on the server, or when the previously   │
  120. echo    │ used version can be replaced by this new version. The old files are  │
  121. echo    │ NOT preserved in this case.                                          │
  122. echo    │                                                                      │
  123. echo    │                                                                      │
  124. echo    │ Continue?  'Y'es or 'N'o.                                            │
  125. echo    ╘══════════════════════════════════════════════════════════════════════╛
  126. yesno
  127. if NOT errorlevel 1 goto m_main
  128. ::
  129. :i_ser_2
  130. ::
  131. cls
  132. if exist sys:login\fslogin.*    flag sys:login\fslogin.*    n >nul
  133. if exist sys:public\fslogin.com flag sys:public\fslogin.com n >nul
  134. set  L_RET=i_ser_3
  135. goto l_menu
  136. ::
  137. :i_ser_3
  138. ::
  139. cls
  140. ncopy fslogin.*   sys:login
  141. ncopy fslogin.com sys:public
  142. ser_ver
  143. if errorlevel 4 goto nw_4
  144. ::
  145. :: This is the Netware 2.x and 3.x syntax of the FLAG command
  146. ::
  147. flag  sys:login\fslogin.* s
  148. flag  sys:public\fslogin.com s
  149. goto flag_done
  150. ::
  151. :nw_4
  152. ::
  153. :: This is the Netware 4.x syntax of the FLAG command
  154. ::
  155. flag  sys:login\fslogin.* sh
  156. flag  sys:public\fslogin.com sh
  157. ::
  158. :flag_done
  159. ::
  160. pause
  161. set L_RET=i_ser_5
  162. ::goto 4_menu
  163. ::
  164. :i_ser_5
  165. ::
  166. cls
  167. echo    ╒══════════════════════════════════════════════════════════════════════╕
  168. echo    │ INSTALL                                                   FSLOGIN v2 │
  169. echo    │                                                                      │
  170. echo    │ The Installation is complete. Please refer to the README.TXT, or     │
  171. echo    │ better, the manual for more information.                             │
  172. echo    │                                                                      │
  173. echo    ╘══════════════════════════════════════════════════════════════════════╛
  174. goto end
  175. ::
  176. :i_update
  177. ::
  178. cls
  179. echo    ╒══════════════════════════════════════════════════════════════════════╕
  180. echo    │ SERVER UPDATE                                             FSLOGIN v2 │
  181. echo    │                                                                      │
  182. echo    │ The Server Update option preserves the current FSLOGIN.INI, which    │
  183. echo    │ could contain valuable customization settings that you do not want   │
  184. echo    │ to loose. To play it save, it's even better to compare the contents  │
  185. echo    │ of the current INI file with the INI file that comes with this       │
  186. echo    │ version and makes modifications BEFORE running th